package com.fenxiangtech.mall.web.controller.v2;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhangjiashun
 */
@Controller("bannerControllerV2")
@RequestMapping("/v2/banner")
public class BannerController {

    @GetMapping("/{id}")
    @ResponseBody
    public String getBannerById(@PathVariable("id") Long id) {
        return "This is v2 version";
    }

}
